//
//  Passat.m
//  Chapter3
//
//  Created by 郭家正 on 2019/1/10.
//  Copyright © 2019 TM. All rights reserved.
//

#import "Passat.h"

@implementation Passat

-(id)initWithName:(NSString *)name
            color:(NSString *)color
           engine:(NSString *)engine
            price:(CGFloat)price
              tel:(NSString *)tel {
    self = [super initWithName:name color:color engine:engine price:price];
    if (self) {
        self.passatTel = tel;
    }
    return self;
}

-(void)passatSayHello {
    NSLog(@"帕萨特问好您");
}

-(NSString *)description {
    return [[NSString alloc]initWithFormat:@"Passat[名字:%@,颜色:%@,马力:%@,价格:%.2f,电话号码:%@]",self.name,self.color,self.enginePower,self.price,self.passatTel];
}

@end
